package com.ktwlsoft.archivemanage.domain.dao.repository;

import com.ktwlsoft.archivemanage.domain.dao.entity.Infrastructure;
import com.ktwlsoft.archivemanage.domain.dao.entity.UnitMember;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface InfrastructureMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Infrastructure record);

    int insertSelective(Infrastructure record);

    Infrastructure selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Infrastructure record);

    int updateByPrimaryKey(Infrastructure record);

    Infrastructure findInfrastructureInfo(Long unitId);

    int addInfrastructureInfo(Infrastructure infrastructure);

    int updateInfrastructureInfo(Infrastructure infrastructure);

    int deleteInfrastructureInfo(Long unitId);

    /**
     * 根据立档ID查询信息 on 2019-10-24 14:19:42
     * @param unitId	unitId
     * @return Infrastructure
     */
    Infrastructure getByUnitId(Long unitId);
}